package com.sz.netty.config;

import com.mybatisflex.spring.boot.MyBatisFlexCustomizer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatis配置类
 */
@Configuration
@MapperScan(basePackages = "com.sz.netty.mapper")
public class MybatisConfig {
    
    /**
     * MyBatis-Flex自定义配置
     */
    @Bean
    public MyBatisFlexCustomizer myBatisFlexCustomizer() {
        return config -> {
            // 配置已经通过application.yml完成，这里可以添加额外的自定义配置
        };
    }
}